<#include "../header.html">
<script type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
<script type="text/javascript">
function  resetLoginPass() {
	var checkedBox = $("input[name=dataId]:checked");
	if(!checkedBox || checkedBox.length!=1){
		alert("请选择一条记录！");
		return false;
	}
	if(window.confirm("是否重置选中记录登录密码？")){
		location.href = "userAction.do?method=resetLoginPass&dataId="+$(checkedBox).val();
	}
}
function  regain() {
	var checkedBox = $("input[name=dataId]:checked");
	if(!checkedBox || checkedBox.length!=1){
		alert("请选择一条记录！");
		return false;
	}
	if(window.confirm("是否恢复选中记录？")){
		location.href = "userAction.do?method=regain&dataId="+$(checkedBox).val();
	}
}
</script>
<div class="c_nav">
	<span>管理选项：</span>
	<a href="userAction.do?method=query">管理首页</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<div class="c_topic">VIP列表</div>
    <form name="queryForm" id="queryForm" action="userAction.do?method=query" method="post">
	<div id="dataQueryArea" class="c_form_6">
		<ul class=" c_form-label-6 l_mb">
			<li>
				<span class="e_label">用户账号：</span>
				<span class="e_input">
					<input type="text" name="account" id="account" desc="用户账号" value="${account!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">用户名称：</span>
				<span class="e_input">
					<input type="text" name="userName" id="userName" desc="用户名称" value="${userName!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">车牌：</span>
				<span class="e_input">
					<input type="text" name="hphm" id="hphm" desc="车牌" value="${hphm!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">会员类型：</span>
				<span class="e_select">
					<select name="uplevel" id="uplevel" >
						<option value="">全部</option>
						<option value="0" <#if uplevel?? && uplevel == '0'> selected="selected" </#if>>普通会员</option>
						<option value="1" <#if uplevel?? && uplevel == '1'> selected="selected" </#if>>一星会员</option>
						<option value="2" <#if uplevel?? && uplevel == '2'> selected="selected" </#if>>二星会员</option>
						<option value="3" <#if uplevel?? && uplevel == '3'> selected="selected" </#if>>三星会员</option>
						<option value="4" <#if uplevel?? && uplevel == '4'> selected="selected" </#if>>四星会员</option>
						<option value="5" <#if uplevel?? && uplevel == '5'> selected="selected" </#if>>五星会员</option>
						<option value="100" <#if uplevel?? && uplevel == '100'> selected="selected" </#if>>修路人</option>
						<option value="1000" <#if uplevel?? && uplevel == '1000'> selected="selected" </#if>>段长</option>
					</select>
				</span>
			</li>
			<li>
				<button type="button" bind="query" bindForm="queryForm" class="l_ml e_btn-form">查询</button>
			</li>
		</ul>
	</div>
    </form>
	<input type="hidden" id="queryParams" name="queryParams" value="${queryParams!}"/>
	<@funcBtn/>
	<!-- 如果需要横向滚动条加c_scroll_tr -->
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
        	<thead>
			<tr>
				<th><input type="checkbox" id="checkedAll" name="checkedAll"/></th>
				<th>用户账号</th>
				<th>用户名称</th>
				<th>性别</th>
				<th>车牌</th>
				<th>马力</th>
				<th>油票</th>
				<th>会员类型</th>
				<th>推荐人</th>
				<th>归属(省份或基地)</th>
				<th>创建时间</th>
				<th>是否删除</th>
			</tr>
            </thead>
            <tbody>
           	<#list list as obj>
            <tr>
            	<td><input type="checkbox" name="dataId" value="${obj.ID!}"></td>
            	<td>${obj.ACCOUNT!}</td>
            	<td>${obj.USER_NAME!}</td>
            	<td><#if obj.SEX?? && obj.SEX == 0><#elseif obj.SEX?? && obj.SEX == 1>男<#elseif obj.SEX?? && obj.SEX == 2>女<#else></#if></td>
				<td>${obj.HPHM!}</td>
				<td>${obj.ML_MONEY/100.0!}</td>
				<td>${obj.STAMP_MONEY/100.0!}</td>
				<td>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '0'> 普通会员</#if>
				    <#if obj.UPLEVEL?? && obj.UPLEVEL?string == '1'> 一星会员</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '2'> 二星会员</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '3'> 三星会员</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '4'> 四星会员</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '5'> 五星会员</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '100'> 修路人</#if>
					<#if obj.UPLEVEL?? && obj.UPLEVEL?string == '1000'>段长</#if>
				</td>
				<td>${obj.P_ACCOUNT!}</td>
				<td>${obj.AFFILIATION_NAME!}</td>
            	<td>${obj.ADD_DATE!}</td>
				<td><#if obj.IS_REMOVE?? && obj.IS_REMOVE == 0>否<#else>是</#if></td>
            <tr>
            </#list>
            </tbody>
		</table>
	</div>	
	<@page/>
</div>
<#include "../footer.html">